package guard_grammar;


/**
 * @author Zlatka Trajcheska, Marija Petkovska
 * @version 1.0 18.02.2013 
 * 
 * In this class we will create fields about parse table
 *  */

public class Relation {

	String nonterminal;
    String terminal;
    int id_rule;

    /**
	 * This method is the constructor of the class.
	 * 
	 * @param String n - nonterminal
	 * @param String t - terminal
	 * @param int id - id of rule
	 */
    Relation(String n, String t, int id){

        nonterminal=n;
        terminal=t;
        id_rule=id;

    }
    
    /**
	 * This method is used for get nonterminal.
	 * 
	 * @return String nonterminal
	 */
    public String getNonterminal(){
        return this.nonterminal;
    }
    
    /**
	 * This method is used for get terminal.
	 * 
	 * @return String terminal
	 */
    public String getTerminal(){
        return this.terminal;
    }
    
    /**
	 * This method is used for get id of rule.
	 * 
	 * @return int id_rule
	 */
    public int getID_rule(){
        return this.id_rule;
    }

}
